const express = require('express');
const { verifyToken } = require('../utiles/jwt');
const menuContorller = require('../contorller/menuContorller')
const router = express.Router();
router
//添加菜单
.post('/addMenu',verifyToken(),menuContorller.addMenu)
//获取菜单列表
.get('/getMenuList',verifyToken(),menuContorller.getMenuList)
//获取菜单详情
.get('/getMenuDetail',verifyToken(),menuContorller.getMenuDetail)
//修改菜单
.put('/updateMenu',verifyToken(),menuContorller.updateMenu)
//删除菜单
.delete('/deleteMenu',verifyToken(),menuContorller.deleteMenu)
module.exports = router;